/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package cn.com.digitalnet.ad.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import cn.com.digitalnet.ad.base.CrudService;
import cn.com.digitalnet.ad.entity.Permission;
import cn.com.digitalnet.ad.repository.mybatis.CrudMao;
import cn.com.digitalnet.ad.repository.mybatis.PermissionMao;

// Spring Bean的标识.
@Component
// 类中所有public函数都纳入事务管理的标识.
@Transactional
public class PermissionService extends CrudService<Permission>{

	@Autowired private PermissionMao mao;

	@Override
	protected CrudMao<Permission> mao() {
		return mao;
	}

}
